package com.example.backend_422.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  用户信息
 * </p>
 *
 * @author xwyzsn
 * @since 2023-04-22
 */
@Data // Lombok, getter, setter, toString
@EqualsAndHashCode(callSuper = false) // Lombok, equals, hashCode
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO) // MyBatis Plus, 主键
    private Integer userId;

    private String username;

    private String password;

    private String tel;

    private String role;


}
